export type FileType = 'text' | 'image' | 'pdf' | 'word' | 'excel' | 'powerpoint' | 'directory' | 'unknown';

export interface FileInfo {
  name: string;
  file_path: string;
  file_type: FileType;
  size: number;
  modified: number;
  is_dir: boolean;
  preview_data?: string;
}

export interface FileListResponse {
  status: 'success' | 'error';
  data: FileInfo[];
  message?: string;
}

export interface FileContentResponse {
  status: 'success' | 'error';
  data?: {
    file_path: string;
    file_type: FileType;
    preview_data: string;
    size: number;
    modified: number;
  };
  message?: string;
}

export interface FavoritePath {
  id: number;
  path: string;
  name: string;
  createTime: number;
} 